<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
docker run -d --name esmaster --ulimit nofile=65536:131072 -p 9200:9200 -p 9300:9300 -v /home/luoqiz/master.yml:/usr/share/elasticsearch/config/elasticsearch.yml -v /data/master:/usr/share/elasticsearch/data -e ES_JAVA_OPTS="-Xms512m -Xmx512m" elasticsearch:6.4.3
docker run -d --name essalve --ulimit nofile=65536:131072 --link esmaster:esmaster -v /home/luoqiz/salve.yml:/usr/share/elasticsearch/config/elasticsearch.yml -v /data/salve:/usr/share/elasticsearch/data -e ES_JAVA_OPTS="-Xms512m -Xmx512m" elasticsearch:6.4.3


docker run -d --name esmaster --ulimit nofile=65536:131072 -p 9200:9200 -p 9300:9300 -v /home/luoqiz/master.yml:/usr/share/elasticsearch/config/elasticsearch.yml elasticsearch:6.4.3
docker run -d --name essalve --ulimit nofile=65536:131072 --link esmaster:esmaster -v /home/luoqiz/salve.yml:/usr/share/elasticsearch/config/elasticsearch.yml elasticsearch:6.4.3



 docker run -e ES_JAVA_OPTS="-Xms640m -Xmx640m" -d -p 9200:9200 -p 9300:9300 -v /data/es1.yml:/usr/share/elasticsearch/config/elasticsearch.yml -v /data/data1:/usr/share/elasticsearch/data --name es01 elasticsearch:6.4.3
 
 docker run -e ES_JAVA_OPTS="-Xms640m -Xmx640m" -d -p 9201:9201 -p 9301:9301 -v /data/es2.yml:/usr/share/elasticsearch/config/elasticsearch.yml -v /data/data2:/usr/share/elasticsearch/data --name es02 elasticsearch:6.4.3

 docker run -e ES_JAVA_OPTS="-Xms640m -Xmx640m" -d -p 9202:9202 -p 9302:9302 -v /data/es3.yml:/usr/share/elasticsearch/config/elasticsearch.yml -v /data/data3:/usr/share/elasticsearch/data --name es03 elasticsearch:6.4.3


curl -XPUT 'http://localhost:9200/_count?pretty' -d ' job/type1/1 {  "title":"abc",  "words":123,  "date":"2017-01-01",  "isok":true}
</body>
</html>
